package org.kust.bbs.search.config;

import org.kust.bbs.search.service.ISearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Esconfig {
    @Autowired
    private ISearchService searchService;

    @Bean
    public void loadEs() {
        searchService.loadEsByPage();
    }
}
